package com.qd.pay.domain;

import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.Size;


/**
 * @author sjk
 */
@Data
@Accessors(chain = true)
public class OrderWxDTO {

    private String orderId;

    @Size(max = 32, message = "mchId长度不能超过{max}位")
    private String mchId;

    @Size(max = 32, message = "deviceInfo长度不能超过{max}位")
    private String deviceInfo;

    @Size(max = 32, message = "nonceStr长度不能超过{max}位")
    private String nonceStr;

    @Size(max = 32, message = "sign长度不能超过{max}位")
    private String sign;

    @Size(max = 32, message = "signType长度不能超过{max}位")
    private String signType;

    @Size(max = 16, message = "tradeType长度不能超过{max}位")
    private String tradeType;

    @Size(max = 16, message = "bankType长度不能超过{max}位")
    private String bankType;

    @Size(max = 50, message = "openid长度不能超过{max}位")
    private String openid;

    @Size(max = 200, message = "wxorgid长度不能超过{max}位")
    private String wxorgid;

    @Size(max = 50, message = "wxAccountType长度不能超过{max}位")
    private String wxAccountType;

    public void freeData() {
        this.orderId = null;
        this.mchId = null;
        this.deviceInfo = null;
        this.nonceStr = null;
        this.sign = null;
        this.signType = null;
        this.tradeType = null;
        this.bankType = null;
        this.openid = null;
        this.wxorgid = null;
        this.wxAccountType = null;
    }
}
